﻿using AutoMapper;
using Max.PH5_2006.ShoppingSite.Domain;
using Max.PH5_2006.ShoppingSite.DTO;

namespace Max.PH5_2006.ShoppingSite.DemoAPI.AutoConfig
{

    public class AutoMapperConfigProfile : Profile
    {
        public AutoMapperConfigProfile()
        {
            //将输入的参数DTO（业务模型），转换为仓储需要的实体模型
            CreateMap<MemberInputDto,MemberEntity>();
            //将仓储返回的实体框，转换为输出业务模型
            CreateMap<MemberEntity, MemberOutputDto>();
        }
    }
}
